package com.ip;

public class Main {

    public static void main(String[] args) {
        String ipAdress;
        int[] parsedIP = new int[4];
        int nrCalc;
        int nextPowOfTwo;
        int exp;

        nrCalc = IPUtility.getCalcNumber();
        nextPowOfTwo = IPUtility.nextPowerOfTwo(nrCalc);
        exp = Math.getExponent(nextPowOfTwo);
        IPUtility.printMask(exp);
        ipAdress = IPUtility.getInitIpAdress();
        parsedIP = IPUtility.ipAdressParserToInt(ipAdress);
        IPUtility.printIpAdresses(parsedIP, nrCalc, nextPowOfTwo);
    }
}
